package com.eugenema.handler;

import com.eugenema.entity.TestStep;
import com.eugenema.util.SeleniumUtil;
import org.openqa.selenium.WebElement;

/**
 * 清理处理器
 *
 * @author Eugenema
 * @date 2023/3/11 14:13
 *
 **/
public class ClearActionHandler {
	/**
	 * Web 端清除操作
	 *
	 * @author Eugenema
	 * @date 2023/3/11 14:11
	 *
	 * @param testStep 动作
	 *
	 **/
	public void webClear(TestStep testStep) throws Exception {
		SeleniumUtil.getElements(testStep).stream().forEach(WebElement::clear);
	}
}
